package com.yanqu.road.entity.curio;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_curio_skill", desc = "藏宝系统-技能")
public class UserCurioSkillData extends DataObject {

    @FieldTypeAnnotation(desc = "用户ID", select = true, update = true)
    private long userId;

    @FieldTypeAnnotation(desc = "技能", update = true)
    private int skill;

    @FieldTypeAnnotation(desc = "技能类型")
    private int skillType;

    @FieldTypeAnnotation(desc = "藏品或者套装ID")
    private int objId;

    @FieldTypeAnnotation(desc = "等级")
    private int lv;

    @FieldTypeAnnotation(desc = "加成")
    private long addition;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getSkill() {
        return skill;
    }

    public void setSkill(int skill) {
        if(this.skill != skill) {
            this.skill = skill;
            setUpdateOption();
        }
    }

    public int getSkillType() {
        return skillType;
    }

    public void setSkillType(int skillType) {
        if(this.skillType != skillType) {
            this.skillType = skillType;
            setUpdateOption();
        }
    }

    public int getObjId() {
        return objId;
    }

    public void setObjId(int objId) {
        if(this.objId != objId) {
            this.objId = objId;
            setUpdateOption();
        }
    }

    public int getLv() {
        return lv;
    }

    public void setLv(int lv) {
        if(this.lv != lv) {
            this.lv = lv;
            setUpdateOption();
        }
    }

    public long getAddition() {
        return addition;
    }

    public void setAddition(long addition) {
        if(this.addition != addition) {
            this.addition = addition;
            setUpdateOption();
        }
    }
}
